import numpy as np

from sigmoid_func import sigmoid


# 矩阵的点积
def dot_fun():
    x = np.array([1, 2])
    y = np.array([[1, 3, 5], [2, 4, 6]])
    w = np.dot(x, y)
    print(w)


def dot_fun(x, y):
    return np.dot(x, y)


if __name__ == "__main__":

    x = np.array([1.0, 0.5])
    y = np.array([[0.1, 0.3, 0.5], [0.2, 0.4, 0.6]])
    b = np.array([0.1, 0.2, 0.3])

    w = dot_fun(x, y) + b

    z = sigmoid(w)
    print(w)
    print(z)
